package com.zone.api.service

import com.zone.api.model.ApiResponse
import com.zone.api.model.LoginReqBean
import com.zone.api.model.LoginResBean
import com.zone.api.model.UserInfoResBean
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface ApiService {
    //获取版本更新
    @GET("soft/version?id=45")
    suspend fun getVersion(): ApiResponse<String>

    //登录
    @POST("sys/phoneLogin")
    suspend fun reqLogin(
        @Body body: LoginReqBean
    ): ApiResponse<LoginResBean>

    @POST("sys/userInfo")
    suspend fun reqUserInfo(
        @Body body: LoginReqBean
    ): ApiResponse<UserInfoResBean>

}